<?php $this->start('admin_menu')?>
	<?php echo $this->element('admin_menu', array('str_item' => 'products')) ?>
<?php $this->end(); ?>

<?php 
	$this->Html->addCrumb('Option Types', null);
	echo $this->Html->getCrumbs(' > ', array('text' =>'Products',
																					 'url' => array('controller' => 'products', 'action' => 'index'),
																					 'escape' => false));
?>

<?php echo $this->Form->create('OptionType', array('action' => 'updateStatus'));
	echo $this->Form->hidden('status');
?>
	<div class="optionTypes index">
		<h2><?php echo __('Option Types Management'); ?></h2>
		<div id="ajax-content">
			<?php echo $this->element('Backend/optionTypeList'); ?>
		</div> <!-- end #ajax-content-->
	</div>
	<div class='actionct'>
		<span class='btn-act'><span>
			<?php echo $this->Form->submit(__('Hide',true), array('class'=>'lightoff-link', 'div' => false, 'onclick' => 'update_status_form(' . OptionType::hide . ');'));  ?>
		</span></span>
		<span class='btn-act'><span>
			<?php echo $this->Form->submit(__('Show',true), array('class'=>'lighton-link', 'div' => false, 'onclick' => 'update_status_form(' . OptionType::show . ');'));  ?>
		</span></span>
		<span class='btn-act'><span>
			<?php echo $this->Html->link(__('New Option Type'), array('action' => 'add')); ?></span></span>
	</div>
<?php echo $this->Form->end(); ?>
